Central and tensor potentials in nuclear shell model calculations