Exploration of Cosmic-ray Acceleration in Protostellar Accretion Shocks and a Model for Ionization Rates in Embedded Protoclusters