X-ray studies of ultraluminous X-ray sources