Faber-Krahn and Lieb-type inequalities for the composite membrane problem