A device thrown through the window of an elderly couple in Londonderry has been confirmed to have been a viable pipe bomb that police say “could have badly injured or even killed’ someone.