Calculation of spreading profiles for molecularly-thin films from surface energy gradients