“Exact” shell model calculations in A = 17 and A = 18 nuclei and effective operators in the (2s, 1d) shell