As a script editor, producer and head of the BBC's series and serials department, Michael Wearing was responsible for such era-defining programmes