Magnetic moments and GT-type β-decay matrix elements in nuclei with a LS doubly closed shell plus or minus one nucleon