Confinement free energy of surfaces bearing end-grafted polymers in the mushroom regime and local measurement of the polymer density.