Self-referenced biosensor based on thin dielectric grating combined with thin metal film