Surface and bulk crystallization in non-isothermal devitrification of glasses