Theoretical and practical aspects of assigning criminal punishment to minors