Raman spectroscopy of the high Tc superconductor YBa2Cu3O7 and the semiconductor YBa2Cu3O6