Microstructure and transport behavior of grain boundaries in YBa2Cu3Oy: A comparison between thin films and bulk bicrystals