Background simulations and detector design for the KATRIN experiment