DA: Stalker spent hours in Sandra Bullock's home, owned machine gun