A confidence interval for Monte Carlo methods with an application to simulation of obliquely reflecting Brownian motion