Semimartingale theory of monotone mean–variance portfolio allocation