Single quantum dot photodiodes: Rabi-flops in a two level system with electric contacts