Molecular chameleons can help track formation of bacterial biofilms