Multiband counterparts of two eclipsing ultraluminous X-ray sources in M 51