Shell-model calculations of beta decays in N-18