Luminescence as a tool to investigate dendrimer properties