Frequency coding all-dielectric metasurface for flexible control of electromagnetic radiation