Ultraluminous X-ray sources in galaxies — microquasars or intermediate mass black holes