Court jails Sri Lanka ex-army chief for three years