Electric field response in molecules and materials : computational studies of extreme conditions and strong fields