Time of occurence and spacetime localization of events as observables in quantum theory