Numerical analysis of planar multimode optical sensor with active nanolayer