A facile preparation of highly fluorescent carbon nitride nanoparticles via solid state reaction for optosensing mercury ions and bisphenol A