Pulse shape analysis with scintillating bolometers