Many pets react poorly to Independence Day booms. But today's smart technology can help you protect them.