City files Rikers reform plan to avoid federal takeover