Surface loading and rigid indentation of an elastic layer with surface energy effects