CO and CI maps of the starburst galaxy M82