A mechanical model for the adhesion of spiders to nominally flat surfaces