Characterization of the coherence properties of visible and near infrared laser diodes