Extended main sequence turnoffs in open clusters as seen by Gaia – I. NGC 2818 and the role of stellar rotation