Energy surface and lifetime of magnetic skyrmions