Square to hexagonal symmetry transition of the flux line lattice in YNi2B2C for different field orientations