Optical quantum random number generators: a comparative study