Photo- and Electroluminescent Properties of Polymethacrylates with Carbazolyl and Fluorescent Pendant Groups