Libya's outgoing parliament names PM, declares emergency