Inter Milan have appointed Walter Mazzarri as the club's new coach on a two-year contract after sacking Andrea Stramaccioni.