Lifetime measurements in the yrast band of the gamma-soft nuclei 131Ce and 133Pr