Entanglement of three-mode light via six-wave mixing in a four-level Y-type atomic system