A mathematical investigation of polyaneuploid cancer cell memory and cross-resistance in state-structured cancer populations