Gregory IV, Pope