Derivation of the two-fluid model for Bose-condensed excitons