A smoothness criterion for monotonicity-preserving subdivision