Atomic effects on nuclear resonance reaction yield curves of aluminium and nickel