Shell model calculations for masses 27, 28 and 29: Specific application to 27, 28Mg and 28, 29Al