Correction of the self-absorption for reversed spectral lines: application to two resonance lines of neutral aluminium