Macroscopic quantum tunneling in quartic and sextic potentials: application to a phase qubit