Added stderr messages and IllegalArgumentException checks to abstract implementations of detector geometry.