SHADOW macro for calculating energy resolution for a range of exit slit gaps on B07