Chemical abundance analysis of symbiotic giants – I. RW Hya and SY Mus