Superposition principle for the tensionless contact of a beam resting on a winkler or a pasternak foundation