A man who inflicted horrific burns on two people after throwing a corrosive substance at them has been jailed for 16 years.