Effective-medium description of a metasurface composed of a periodic array of nanoantennas coupled to a metallic film