Preferred orientations in MgO films deposited on amorphous substrates