Nucleation and growth of platinum and nickel films on amorphous carbon substrates