gaussian fit to inverse intensity variation, even though it doesnt work