Determinants of public cooperation in multiplex networks