A general solid-state synthesis of chemically-doped fluorescent graphene quantum dots for bioimaging and optoelectronic applications.