Statistics for Design, fabrication and characterization of high performance resonant cavity enhanced photodetectors