Scaling theory for the growth of amorphous films