Bangladesh ex-PM surrenders to court over bus attack, granted bail