Graphitic carbon nitride supported palladium nanocatalyst as an efficient and sustainable catalyst for treating environmental contaminants and hydrogen evolution reaction