The brown dwarf population in the Chamaeleon I cloud