Flux pinning and phase transitions in model high-temperature superconductors with columnar defects.