Modeling of mushroom waveguide photodetector