Metasurfaces for biomedical applications: imaging and sensing from a nanophotonics perspective