Optimal linear and two-bracket income taxes with idiosyncratic earnings risk