Photoluminescence and electroluminescence of pyrazoline monomers and dimers