Selfconsistent band structures and optical calculations in cubic ferroelectric perovskites