Nuclear matter equation of state using density-dependent M3Y nucleon–nucleon interactions