Correlation between plasma frequency and superconducting transition temperature in YBa2Cu3Oy