A search for CP-violating effects in the decays K± → π±π0π0