Convexity corrections via a Markov-functional approach