Strength of pressure vessels with ellipsoidal heads