Engineering surface states of carbon dots to achieve controllable luminescence for solid-luminescent composites and sensitive Be2+ detection | Synapse