Hundreds of thousands of people have joined the funeral prayers for Bangladesh's former prime minister Khaleda Zia.