Density dependence of the EMC effect