On the relationship between the cosmic web and the alignment of galaxies and AGN jets