Neural processes for learning and monitoring sequential regularities in changeable environments