Role of capping agents in the application of nanoparticles in biomedicine and environmental remediation: recent trends and future prospects