A Functional Architecture of Prognostics and Health Management using a Systems Engineering Approach