Nuclear magnetic resonance and Mossbauer studies of rapidly quenched and heat-treated Nd4Fe77.5B18.5 alloys