Endomorphism structure of groups of order 8