Montolivo heading for Bayern Munich