Neutron electric dipole moment measurement with a buffer gas comagnetometer