Maya gets destroyed for a person when s/he perceives Brahman with transcendental knowledge