Studies on nuclear structure in the 2s-1d shell: (II). Application to nuclei with A = 18 and A = 20