Dynamical delocalization of Majorana edge states by sweeping across a quantum critical point