Discovering plasticity rules that organize and maintain neural circuits