Shell-model calculations in A = 23−28 nuclei