Google employee made redundant after reporting sexual harassment, court hears