Buckling of spherical shells adhering onto a rigid substrate