Greta Thunberg pulls out of Edinburgh Book Festival appearance after accusing key sponsor of greenwashing