Reconfigurable phase-change metasurfaces from efficient wavefront manipulation to perfect absorption