2XMM ultraluminous X-ray source candidates in nearby galaxies