Black holes and black strings of N = 2, d = 5 supergravity in the H-FGK formalism