All-dielectric metasurface for complete phase and amplitude control based on Pancharatnam–Berry phase and Fabry–Pérot resonance