Michael O'Neill admitted the dismissals of Chris Brunt and substitute Kyle Lafferty ultimately cost Northern Ireland against Portugal on Friday night.