German terror cell planned attacks on mosques