A novel approach to measure photodesorption rates of interstellar ice analogues. The photodesorption rate of CO ice reinvestigated