Hartree-fock calculations for A = 4n s-d shell nuclei using a density-dependent effective interaction