Calculation of the apparent Michaelis constant for biosensors using reaction-diffusion equations