A method of measuring illumination, corresponding system and computer program product