Design of cylindrical and spherical shells under internal and external pressures