Buckling-induced encapsulation of structured elastic shells under pressure