Effective interaction for the shell model in the 1p0f shell