Extensions of period maps to toroidal compactifications