Young rotation-powered pulsars as ultraluminous X-ray sources