Abstract representations underlie rhythm perception and production: evidence from a probabilistic model of temporal structure