Thermal expansion and phonon anharmonicity of cuprite studied by inelastic neutron scattering and ab initio calculations