Erdogan seeks control of Turkey spy agency, chief of staff after coup