Multiscale analysis of water uptake and erosion in biodegradable polyarylates